package com.ruihao.cetralizelogin.commons.model;

import java.io.Serializable;
import java.util.Date;

/**
 * 角色模型
 * @author sly
 * @time 2019年9月9日
 */
public class Role implements Serializable {

    private static final long serialVersionUID = -7002365118499707406L;

    /** ID varchar(50) not null comment '主键ID' */
    private String id;
    /** ROLE_CODE varchar(50) comment '统一角色CODE【统一登录超管角色CODE：UNIFYAUTH_ADMIN】' */
    private String roleCode;
    /** ROLE_NAME varchar(50) comment '统一角色名' */
    private String roleName;
    /** REMARK varchar(200) comment '角色描述' */
    private String remark;
    /** SORT_NUM int(9) comment '排序号' */
    private Integer sortNum;
    /** CREATE_TIME datetime comment '角色创建时间' */
    private Date createTime;
    /** SYSTEM_ID varchar(50) comment '角色所属系统ID【统一权限里的一个角色只能对应一个系统】' */
    private String systemId;
    /** CREATE_USER varchar(50) NULL创建人 */
    private String createUser;

    /* 拓展字段 */
    /** 创建起始时间 */
    private String startCreateTime;
    /** 创建终止时间 */
    private String endCreateTime;
    /** 所属系统实体 */
    private System system;
    /** 是否授权 */
    private boolean isAuth;
    /** 系統名称 */
    private String systemName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRoleCode() {
        return roleCode;
    }

    public void setRoleCode(String roleCode) {
        this.roleCode = roleCode;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Integer getSortNum() {
        return sortNum;
    }

    public void setSortNum(Integer sortNum) {
        this.sortNum = sortNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSystemId() {
        return systemId;
    }

    public void setSystemId(String systemId) {
        this.systemId = systemId;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getStartCreateTime() {
        return startCreateTime;
    }

    public void setStartCreateTime(String startCreateTime) {
        this.startCreateTime = startCreateTime;
    }

    public String getEndCreateTime() {
        return endCreateTime;
    }

    public void setEndCreateTime(String endCreateTime) {
        this.endCreateTime = endCreateTime;
    }

    public System getSystem() {
        return system;
    }

    public void setSystem(System system) {
        this.system = system;
    }

    public boolean isAuth() {
        return isAuth;
    }

    public void setAuth(boolean auth) {
        isAuth = auth;
    }

    public String getSystemName() {
        return systemName;
    }

    public void setSystemName(String systemName) {
        this.systemName = systemName;
    }
}
